<?php
/**
 * Created by PhpStorm.
 * User: fengzi
 * Date: 2019/5/29
 * Time: 17:18
 */

namespace app\vehicle\model;
use think\Model;

class Practice extends Model
{
    public function getThumbAttr($value){
        return $value?config('database.img_url').$value:'';
    }
    public function getCodeAttr($value){
        return $value?config('database.img_url').$value:'';
    }
    public function getRetreatAttr($value){
        return $value?config('database.img_url').$value:'';
    }
    public function getEndTimeAttr($value){
        return date('Y-m-d H:i',$value);
    }
    public function getUseTimeAttr($value){
        return date('Y-m-d H:i',$value);
    }
}